#include "threadPool.h"
int func_pwd(char * ant,numStack_t * stack,MYSQL * mysql)
{
    int top=topStack(stack);
    printf("top is %d\n",top);
    char sql[100]={0};
    sprintf(sql,"select * from file_excel where id = %d ;",top);
    int ret=mysql_query(mysql,sql);
    if(ret!=0)
    {
        printf("没有id==栈顶num的查找错误\n");
        return -1;
    }
    MYSQL_RES * result = mysql_store_result(mysql);//接受结果 
    MYSQL_ROW row=mysql_fetch_row(result);// 获取一行结果           
    strcat(ant,row[5]); 
    mysql_free_result(result);
    return 0;           
}                       

